<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/resources/templates/template_site.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ListCaracteristiqueTitle}"></h:outputText>
        </ui:define>
        <ui:define name="content" >
             
                <p:panel header="#{bundle.ListCaracteristiqueTitle}" styleClass="jsfcrud_list_form">
                    <h:panelGroup id="messagePanel" layout="block">
                        <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                    </h:panelGroup>
                    <h:outputText escape="false" value="#{bundle.ListCaracteristiqueEmpty}" rendered="#{caracteristiqueController.items.rowCount == 0}"/>
                    <h:panelGroup rendered="#{caracteristiqueController.items.rowCount > 0}">
                        <h:outputText value="#{caracteristiqueController.pagination.pageFirstItem + 1}..#{caracteristiqueController.pagination.pageLastItem + 1}/#{caracteristiqueController.pagination.itemsCount}"/>&nbsp;
                        <h:commandLink action="#{caracteristiqueController.previous}" value="#{bundle.Previous} #{caracteristiqueController.pagination.pageSize}" rendered="#{caracteristiqueController.pagination.hasPreviousPage}"/>&nbsp;
                        <h:commandLink action="#{caracteristiqueController.next}" value="#{bundle.Next} #{caracteristiqueController.pagination.pageSize}" rendered="#{caracteristiqueController.pagination.hasNextPage}"/>&nbsp;
                        <p:dataTable value="#{caracteristiqueController.items}" var="item" rows="8">
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="#{bundle.ListCaracteristiqueTitle_idcarac}"/>
                                </f:facet>
                                <h:outputText value="#{item.idcarac}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="#{bundle.ListCaracteristiqueTitle_decription}"/>
                                </f:facet>
                                <h:outputText value="#{item.decription}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="#{bundle.ListCaracteristiqueTitle_nomcarac}"/>
                                </f:facet>
                                <h:outputText value="#{item.nomcarac}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="#{bundle.ListCaracteristiqueTitle_iditem}"/>
                                </f:facet>
                                <h:outputText value="#{item.iditem}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="&nbsp;"/>
                                </f:facet>
                                <h:commandLink action="#{caracteristiqueController.prepareView}" value="#{bundle.ListCaracteristiqueViewLink}"/>
                                <h:outputText value=" "/>
                                <h:commandLink action="#{caracteristiqueController.prepareEdit}" value="#{bundle.ListCaracteristiqueEditLink}"/>
                                <h:outputText value=" "/>
                                <h:commandLink action="#{caracteristiqueController.destroy}" value="#{bundle.ListCaracteristiqueDestroyLink}"/>
                            </p:column>
                        </p:dataTable>
                    </h:panelGroup>
                    <br />
                    <h:commandLink action="#{caracteristiqueController.prepareCreate}" value="#{bundle.ListCaracteristiqueCreateLink}"/>
                    <br />
                    <br />
                    <h:commandLink value="#{bundle.ListCaracteristiqueIndexLink}" action="/pages/index" immediate="true" />
                </p:panel>
        </ui:define>
    </ui:composition>

</html>
